using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Controls_ProjectPanel : System.Web.UI.UserControl
{
	protected void Page_Load(object sender, EventArgs e)
	{
		// Check id
		if (Request.QueryString["id"] == null)
			return;
		
		// Check roles
		if (!Roles.IsUserInRole("SManage_Admin") &&
			!Roles.IsUserInRole("SManage_Manager"))
			return;

		// Display the awesomeness and
		// set the links
		this.pnlProject.Visible = true;
		this.lnkUsers.NavigateUrl = "~/ProjectUsers.aspx?id=" +
			Request.QueryString["id"];
		this.lnkHome.NavigateUrl = "~/Project.aspx?id=" +
			Request.QueryString["id"];
	}
}
